package control.action;

import model.TStuinfo;
import business.factory.daos;

public class DeleArticleAction extends BaseAction {
	private int artsid;
	private int userid;
	private int stuinfoid;
	
	/**
	 * 删除学生个人论文
	 * @return
	 */
	public String execute() {
		TStuinfo stuinfo = daos.studao.getstuById(stuinfoid);
		userid = stuinfo.getUserid();
		boolean obj = daos.articledao.delarticle(artsid);
		if (obj==false) {
			return null;
		}
		return SUCCESS;
	}

	public int getArtsid() {
		return artsid;
	}

	public void setArtsid(int artsid) {
		this.artsid = artsid;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public int getStuinfoid() {
		return stuinfoid;
	}

	public void setStuinfoid(int stuinfoid) {
		this.stuinfoid = stuinfoid;
	}
	
}